From registry.cn-beijing.aliyuncs.com/fx/base

MAINTAINER Jerry "xiuce123@126.com"

# ENV NVM_DIR /root/.nvm


RUN chmod 0600 /root/.ssh/id_rsa
RUN mkdir -p /var/www \
    && cd /var/www \
    && git clone git@gitee.com:myjacksun/cms_web.git

WORKDIR /var/www/cms_web

ADD ./api.js config/api.js

ADD ./start-server.sh  /usr/bin/start-server

RUN chmod +x /usr/bin/start-server

RUN /usr/bin/start-server

EXPOSE 3006

#ENTRYPOINT /usr/bin/start-server
